add getter.
authorJonathan Blandford <jrb@redhat.com>
Thu, 23 Mar 2000 22:33:38 +0000 (22:33 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Thu, 23 Mar 2000 22:33:38 +0000 (22:33 +0000)
2000-03-23  Jonathan Blandford  <jrb@redhat.com>

* gtk/gtkpaned.c (gtk_paned_get_position): add getter.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkpaned.c
gtk/gtkpaned.h

index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 1fd36a68a88c43bfd5296f2bb6d797408b56f9cd..57509b88e8cc8a21ebcf97ef5a7c5b77686579ef 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-23  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
+
 2000-03-17  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c: Remove the #ifndef
index 5022a094c07f8bd691a43acf1aa100922e26da71..db32e7cdabe57a8ceb702ea8813f2daa0ddb84fb 100644 (file)
@@ -484,6 +484,15 @@ gtk_paned_forall (GtkContainer *container,
     (*callback) (paned->child2, callback_data);
 }
 
+gint
+gtk_paned_get_position (GtkPaned  *paned)
+{
+  g_return_if_fail (paned != NULL);
+  g_return_if_fail (GTK_IS_PANED (paned));
+
+  return paned->child1_size;
+}
+
 void
 gtk_paned_set_position (GtkPaned *paned,
                        gint      position)
index da0f520afe95f4e1dd04d96e2424bdb664bcea69..2324ddb9cee925601f89d190e6f2f2680e3f01a3 100644 (file)
@@ -99,6 +99,7 @@ void    gtk_paned_pack2           (GtkPaned  *paned,
                                   GtkWidget *child,
                                   gboolean   resize,
                                   gboolean   shrink);
+gint    gtk_paned_get_position    (GtkPaned  *paned);
 void    gtk_paned_set_position    (GtkPaned  *paned,
                                   gint       position);
 void    gtk_paned_set_handle_size (GtkPaned  *paned,